/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.chat.vo;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.sys.Entity.DataEntity;

/**
 * 建材分类Entity
 * @author 钟俊辉
 * @version 2017-08-14
 */
public class YzbMaterialsCategory extends DataEntity<YzbMaterialsCategory> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 分类名称
	private String remark;		// 备注
	private Integer sort;		// 排序号
	private YzbMaterialsCategory parent;		// 父级编号
	private String parentIds;		// 所有父级编号
	private Integer type;//类型
	private YzbSpecification yzbSpecification;
	
	public YzbMaterialsCategory() {
		super();
	}

	public YzbMaterialsCategory(String id){
		super(id);
	}
	
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@JsonBackReference
	public YzbMaterialsCategory getParent() {
		return parent;
	}

	public void setParent(YzbMaterialsCategory parent) {
		this.parent = parent;
	}
	
	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	
	public String getParentId() {
		return parent != null && parent.getId() != null ? parent.getId() : "0";
	}

	public YzbSpecification getYzbSpecification() {
		return yzbSpecification;
	}

	public void setYzbSpecification(YzbSpecification yzbSpecification) {
		this.yzbSpecification = yzbSpecification;
	}

	
}